package com.huafeng.attendance.dao.impl;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.huafeng.attendance.bean.Attendance;
import com.huafeng.attendance.dao.AttendanceDao;

/**
 * Attendance 数据访问操作实现类
 * @author waysoft
 */
public class AttendanceDaoImpl extends HibernateDaoSupport implements AttendanceDao {
	/**
	 * 增加gr20报表模版列表
	 * @param attendance
	 */
	public void save(Attendance attendance) {
		this.getHibernateTemplate().save(attendance);
	}
	
	/**
	 * 修改gr20报表模版列表
	 * @param attendance
	 */
	public void update(Attendance attendance) {
		this.getHibernateTemplate().update(attendance);
	}
	
	/**
	 * 根据主键查询唯一对象
	 * @param attend_id主键值
	 */
	public Attendance findByAttend_id(Integer attend_id){
		return (Attendance) this.getHibernateTemplate().get(Attendance.class, attend_id);
	}
	
}
